<template>
	<view class="login-btn">
		<view class="btn" @click="clickFun">
			<text>{{btnText}}</text>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			btnText: {
				type: String,
				default: '注册'
			}
		},
		methods: {
			clickFun() {
				this.$emit('clickFun')
			}
		}
	}
</script>

<style scoped lang="scss">
	.login-btn {
		margin-top: 160rpx;
		width: 100%;

		.btn {
			width: 60%;
			margin-left: 20%;
			height: 80rpx;
			border-radius: 40rpx;
			background-color: #F39801;
			line-height: 80rpx;
			text-align: center;

			text {
				color: #fff;
				font-size: 36rpx;
			}
		}
	}
</style>